package com.css.fxfzfxqh.modules.buildingKilometerGrid.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class BuildingGridGetByIdVo<T> {
    T data;
    List<FxqhBuildingGridTableTitleVo> title;

    public static <T> BuildingGridGetByIdVo<T> build(T data, List<FxqhBuildingGridTableTitleVo> title) {
        BuildingGridGetByIdVo<T> vo = new BuildingGridGetByIdVo<>();
        vo.setData(data);
        vo.setTitle(title);
        return vo;
    }
}
